package com.partition.mysql.bean;

/**
 * 分区配置项
 * @author hexinglin
 * @created 2022-04-08 15:58
 **/
public class PartitionItem {
    /*
    * 需要分区的表名
    */
    private String tableName;
    /*
     * 指定分区的列
     */
    private String rangeColumnName;

    /*
     * 指定分区的策略，默认月
     */
    private String rangeStrategy="month";

    /*
     * 预先创建的数量，默认3
     */
    private Integer preNums=3;

    /*
     * 清理分区时保留的分区数量，默认12
     */
    private Integer retainNumsOnClear=12;

    public Integer getRetainNumsOnClear() {
        return retainNumsOnClear;
    }

    public void setRetainNumsOnClear(Integer retainNumsOnClear) {
        this.retainNumsOnClear = retainNumsOnClear;
    }

    public Integer getPreNums() {
        return preNums;
    }

    public void setPreNums(Integer preNums) {
        this.preNums = preNums;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getRangeColumnName() {
        return rangeColumnName;
    }

    public void setRangeColumnName(String rangeColumnName) {
        this.rangeColumnName = rangeColumnName;
    }

    public String getRangeStrategy() {
        return rangeStrategy;
    }

    public void setRangeStrategy(String rangeStrategy) {
        this.rangeStrategy = rangeStrategy;
    }
}
